#ifndef __WAVEFORM_QT_H__
#define __WAVEFORM_QT_H__

#include "waveform.h"
#include "../Global/Common.h"
#include "../Tools/STD_QT.h"

#include <stdint.h>
#include <QMap>
#include <QVector>
#include <QString>

using namespace ch;

class Waveform_QT {
public:
	explicit Waveform_QT();
	~Waveform_QT();
	bool Load(const QString& dataPath, const QString& annotationPath);
	QVector<short> const getWaveform();

#ifdef _DEBUG
public:
	void limitDataLength(int len = 7000);
#endif // _DEBUG

public:
	QVector<short> mSingleWaveform;

public:
	void initWave(Waveform& wave);

public:
	QVector<int16_t> mWaveform[ECG12_CHANNELS]; // convert to millvolt by *2.52
	QVector<double> mFilteredWaveform[ECG12_CHANNELS];
	QMap<QString, QVector<int>> mAnnotation[ECG12_CHANNELS];
};

#endif //!__WAVEFORM_QT_H__

